
CFLAGS = -std=c++17 -O2
LDFLAGS = -lvulkan

VulkanTest: main.cpp
	g++ $(CFLAGS) -o vulkan_matmul main.cpp $(LDFLAGS)

.PHONY: test clean

test: VulkanTest
	glslangValidator -V matrix.comp -o matrix.comp.spv
	./vulkan_matmul

clean:
	rm -rf matrix.comp.spv
	rm -rf vulkan_matmul